package com.asset.dispoal.file.bank.domain.service.command;

import com.asset.dispoal.file.bank.domain.db.mapper.FileBankMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Component
public class FileBankGetByIdCommand {

    @Autowired
    private FileBankMapper fileBankMapper;

    public Result execute(String id) {
        return Result.ok(fileBankMapper.getAmountById(id));
    }
}